{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410
{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\b\fs24 \cf0 To Install
\f1\b0  (for apache, since that's what I'm using):\
\
1) Take the folder svn_xml and place it in your subversion webserver's document root.  This contains the actual .xsl file and icons used.  If you already have an .xsl, see the section below on modifying your existing stylesheet.\
\
2) Edit httpd.conf (or wherever you defined your subversion configuration) and add this line:\
\
SVNIndexXSLT "/svn_xml/svnindex.xsl"\
\
My complete config block looks like this:\
\
<Location /svn>\
    DAV svn\
    SVNParentPath /path/to/subversion/repository\
    SVNIndexXSLT "/svn_xml/svnindex.xsl"\
    AuthType Basic\
    AuthName "NTFO Subversion Repository"\
    AuthUserFile /path/to/subversion/svn.htpasswds\
    Require valid-user\
</Location>\
\
Save and restart apache.  You are done.  Crazy how difficult some of this stuff is, isn't it?\
\

\f0\b I already have a custom XML stylesheet... what now?
\f1\b0 \
\
Edit your sheet to include the entirety of the template 'fileicon':\
<xsl:template name="fileicon">\
...\
</xsl:template>\
\
Then edit the 'dir' matching template to include an image link to the folder icon:\
\
<xsl:template match="dir">\
    <div class="dir">\
      <img src = "/svn_xml/icons/folder.png"/>\
      <xsl:element name="a">\
...\
</xsl:template>\
\
Finally, add a call-template to the 'file' matching template to call the 'fileicon' template you added in previously:\
\
<xsl:template match="file">\
    <div class="file">\
      <xsl:call-template name = "fileicon">\
        <xsl:with-param name ="filename" select = "@name"/>\
      </xsl:call-template>\
...\
</xsl:template>}